﻿@model List<LynxWiki.ViewModels.WikiTopicHistoryListingViewData>

@{
    ViewBag.Title = Model[0].TopicName + "History";
    Layout = "~/Views/Shared/_LayoutTopic.cshtml";
}

<h2>@Model[0].TopicName - History</h2>
<table class="TableClass">
    <tr>
        <th class="TableCellHighlighted">Date Time Created</th><th class="TableCellHighlighted">Ver</th><th class="TableCellHighlighted">Creator</th><th></th><th></th>
    </tr>
    @Html.DisplayForModel()
</table>

@section Scripts {
    <script type="text/javascript" >
        $(document).ready(function () {
            $(".btnPreview").click(function (e) {
                $(".frmTopicHistory").attr("target", "_blank");
                return true;
            });
            $(".btnMakeCurrent").click(function (e) {
                $(".frmMakeCurrent").attr("target", "_self");
                return true;
            });
        });
    </script>
}